package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.DmcPhoneZone;
import com.csun.cmny.provider.model.vo.DmcPhoneZoneVo;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DmcPhoneZoneMapper extends Mapper<DmcPhoneZone> {

    /**
     * query phone zone list by device id
     *
     * @param deviceId the device id
     *
     * @return the phone zone list by device id
     */
    List<DmcPhoneZoneVo> queryPhoneZoneList(Long deviceId);

    /**
     * delete phone zone bind by device id
     *
     * @param deviceId  device id
     *
     * @return  the int.
     */
    Integer deletePhoneZoneBindByDeviceId(Long deviceId);

    /**
     * untied phone zone with location
     *
     * @param id the zone id
     *
     * @return the int.
     */
    Integer zoneUntied(Long id);
}